/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import view.adAlumnos.CuotaPanel;
/**
 *
 * @author Nelson
 */
public class ControladorCuota  extends Controlador {
    private CuotaPanel cuota;

    public ControladorCuota(JPanel padre) {
        this.cuota = (CuotaPanel) padre;
    }

    public enum Accion {

        BotonBuscar,
        BotonImprimir,
        BotonAceptar,
        BotonCancelar,
    }

    @Override
    public void iniciar() {

        //boton
//        this.cuota.BotonImprimir.setActionCommand("BotonImprimir");
//        this.cuota.BotonImprimir.addActionListener(this);
//        
//        this.cuota.BotonBuscar.setActionCommand("BotonBuscar");
//        this.cuota.BotonBuscar.addActionListener(this);
//        
//        this.cuota.BotonCancelar.setActionCommand("BotonAceptar");
//        this.cuota.BotonAceptar.addActionListener(this);
//        
//        this.cuota.BotonCancelar.setActionCommand("BotonCancelar");
//        this.cuota.BotonCancelar.addActionListener(this);
    }

    /**
     * Gestion de accciones
     */
    public void actionPerformed(ActionEvent e) {

        switch (ControladorCuota.Accion.valueOf(e.getActionCommand())) {
            case BotonAceptar:
                break;
            case BotonCancelar:
                break;
            case BotonImprimir:
                break;
            case BotonBuscar:
                break;
                
        }//-> fin swith
    }
}
